<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="sysDefault" />
<script type="text/javascript">
$(document).ready(function() {
	
});
</script>
</head>
<body>
	  <form id="tpl" action="${contextPath}/sys/msg/tpl/list/1/100" modelAttribute="obj" method="post" class="panel-body" role="form">
		<div class="o-l-action form-inline">
			<div class="form-group">
		    	 <input type="text" id="code" name="code"
		    		value="${obj.code }" class="form-control input-sm" placeholder="Code">
			</div>
		    <button type="submit" class="btn btn-primary btn-sm" id="queryBtn">查询</button>
		  	<a class="btn btn-info btn-sm pull-right" href="${contextPath}/sys/msg/tpl/view">增加</a>
		  	<a class="btn btn-danger btn-sm pull-right"
					onclick="Oosp_DelChked('${contextPath}/sys/msg/tpl/{id}/delete','table1','{id}')">删除</a>
		  </div>
		</form>
		<tags:message content="${message}"/>
		<table class="table table-striped table-hover o-l-table" id="table1">
			<thead>
				<tr>
					<th style="width: 1px"><input type="checkbox" data-ckb="all"></th>
					<th>Code</th>
					<th>表达式</th>
					<th>描述</th>
				</tr>
			</thead>
			<tbody style="overflow: scroll;">
				<c:forEach items="${list}" var="obj" step="1" varStatus="">
					<tr data-herf="${contextPath}/sys/msg/tpl/${obj.id }/view" data-target="_self">
						<td class="o-l-tab-ckb">
							<input type="checkbox" data-ckb-id="${obj.id }">
						</td>
						<td>${obj.code }</td>
						<td>${obj.expression }</td>
						<td>${obj.remark }</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
<script type="text/javascript" src="${staticPath}/js/list.js"></script>
</body>
</html>